
import React, { Component } from 'react';
import { history } from 'umi';

export default ({ style, size, logotext, hidetitle }) => (
    <div className="rowcenter" style={{ ...style, cursor: "pointer" }} onClick={() => {
        history.push("/")
    }}>
        <div className="columncenter">
            <img src={require("@/assets/logo.png")} alt="logo" style={{ height: size == "large" ? 40 : size == "small" ? 20 : 30 }} />
            {
                logotext && <span>
                    NJAPIMEI
                </span>
            }

        </div>
        {
            hidetitle ? null : <span style={{ marginLeft: 12, fontSize: size == "large" ? 24 : size == "small" ? 14 : 18 }}>江苏省智能装备产业联盟</span>
        }

    </div>
)